/*******************************************************************************
 * Copyright 2011 See AUTHORS file.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/

package com.brainydroid.example.numerical_distance;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

/**
 * Contains all the external material you wish to use for the experiments
 * @author Vincent
 *
 */
public class Assets {
	
        public static Texture test_texture;
        public static TextureRegion test_texture_r;
        public static BitmapFont font;
        public static Sound wrong;
        public static Texture loadTexture (String file) {
                return new Texture(Gdx.files.internal(file));
        }

        public static void load () {
        	test_texture = loadTexture("data/test_texture.png");
        	test_texture_r = new TextureRegion(test_texture, 0, 0, 128, 128);
//            font = new BitmapFont(Gdx.files.internal("data/font.fnt"),Gdx.files.internal("data/font.png"), false);
            font = new BitmapFont(Gdx.files.internal("data/verdana39.fnt"),Gdx.files.internal("data/verdana39.png"), false);
            wrong = Gdx.audio.newSound(Gdx.files.internal("data/wrong.wav"));
            font.scale(2f);
        }

        public static void playSound (Sound sound) {
        		sound.play(1);
        }
}